package com.cimu.ting89;

import com.cimu.utils.DownloadUtil;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

import java.io.IOException;

/**
 * Title: BotingMain
 * Copyright: Copyright (c) 2017
 *
 * @author cgx
 * date 2019年08月17日 13:00
 */
public class Ting89Main {

    /**
     * 官网地址 http://www.ting89.com/playbook/?11991-0-0.html
     * @param args
     */
    public static void main(String[] args) throws InterruptedException {
        for(int i=684;i<843;i++){
            String filename = ".mp3";
            if(i<10){
                filename = "00"+i+filename;
            }else if (i <100){
                filename = "0"+i+filename;
            }else {
                filename = i+filename;
            }
//            String url=  "http://mp3d.ting89.com:9090/玄幻奇幻/凤凰错替嫁弃妃/"+filename;
            String url=  "http://mp33a.ting89.com:9090/玄幻奇幻/凤凰错替嫁弃妃/"+filename;

            DownloadUtil downloadUtil = new DownloadUtil();
            downloadUtil.download(url,"E:\\download",filename, null);
            Thread.sleep(2000);
        }


    }

}
